-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Added mpl_15 decorator #18682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added mpl_15 decorator #18682
Conversation
Codecov Report
@@ Coverage Diff @@
## master #18682 +/- ##
==========================================
- Coverage 91.59% 91.57% -0.02%
==========================================
Files 153 153
Lines 51257 51266 +9
==========================================
Hits 46949 46949
- Misses 4308 4317 +9
Continue to review full report at Codecov.
|
@@ -519,14 +519,14 @@ def test_finder_hourly(self): | |||
xp = Period('1/1/1999', freq='H').ordinal | |||
assert rs == xp | |||
|
|||
@td.skip_if_mpl_1_5 | |||
@pytest.mark.slow | |||
def test_gaps(self): | |||
ts = tm.makeTimeSeries() | |||
ts[5:25] = np.nan | |||
_, ax = self.plt.subplots() | |||
ts.plot(ax=ax) | |||
lines = ax.get_lines() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, we occasionally do this. if its actually important then could split into 2 tests. not a big deal here.
thanks! |
git diff upstream/master -u -- "*.py" | flake8 --diff
FWIW the functionality here could be slightly different, because the previous skip if items occurred in the middle of the function bodies instead of wrapping the function, so the first few lines of code within those functions would run in instances that are being skipped today.
I've ignored that nuance because I find it strange that we would only want to run part of the test without any assertions for different versions of matplotlib, but if you feel it needs to be accounted for in some other fashion (say separate test cases) let me know